import Home from '../page/home/index'
import Course from '../page/course/index'
import MyCourse from '../page/myCourse/index'
import Cart from '../page/cart/index'
import Person from '../page/person/index'
import CourseItem from '../page//courseItem/index'
import Room from '../page/room/index'
import TeacherCom from '../page/teacher/index'
import NoteCom from '../page/note/index'
// phone page
import PHome from '../page/phone//index'
import Live from '../page/live/index'
import Logout from '../page/logout/index'
// import NoteCom from '../page/note'

const menu = [
    {
        title: '课程中心',
        path: '/course',
        comp: Course,
        checkLogin: false
    },
    {
        title: '我的课程',
        path: '/mycourse',
        comp: MyCourse,
        checkLogin: true
    },
    {
        title: '购物车',
        path: '/cart',
        comp: Cart,
        checkLogin: true   
    },
    {
        title: '个人中心',
        path: '/person',
        comp: Person,
        checkLogin: true
    },
    {
        title: '北仑在线直播',
        path: '/phome',
        comp: PHome,
        checkLogin: false
    },
    {
        title: '课程详情',
        path: '/courseitem/:id',
        comp: CourseItem,
        checkLogin: false
    },
    {
        title: '名师',
        path: '/teacher/:teacherId',
        comp: TeacherCom,
        checkLogin: false
    },
    // {
    //     title: '视频播放',
    //     path: '/liveVideo/:roomId',
    //     comp: Live,
    //     checkLogin: true
    // },
    {
        title: '视频播放',
        path: '/room/:roomId',
        comp: Room,
        checkLogin: true
    },{
        title: '公告',
        path: '/note/:id',
        comp: NoteCom,
        checkLogin: false 
    },
    {
        title: '在线直播课堂',
        path: '/',
        comp: Home,
        checkLogin: false
    },
    {
        title: '在线课堂',
        path: '/logout',
        comp: Logout,
        checkLogin: false
    }

]

export default menu